package com.javablog.dto;

import lombok.Data;

import javax.validation.constraints.NotBlank;
import javax.validation.constraints.Size;

@Data
public class TagDto {
    
    private Long id;
    
    @NotBlank(message = "标签名称不能为空")
    @Size(min = 2, max = 30, message = "标签名称长度必须在2到30个字符之间")
    private String name;
    
    private int articleCount;
} 